/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.*;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Entity;

/**
 *
 * @author woutermkievit
 */
@Entity
@PrimaryKeyJoinColumn(name="ucode", referencedColumnName="ucode")
@Table(name = "Student")

public class Student extends Gebruiker {

    @Column(name = "Bankaccountnr")
    private String Bankaccountnr;
    
    public Student() {
    }

    public Student(String Bankaccountnr){
        this.Bankaccountnr = Bankaccountnr;
    }

    

    

    public String getBankaccountnr() {
        return Bankaccountnr;
    }

    public void setBankaccountnr(String Bankaccountnr) {
        this.Bankaccountnr = Bankaccountnr;
    }

    public Gebruiker getUser() {
        return new Gebruiker(getuCode(),getEmail(),getFirstName(),getInsertion(),getLastName(),getPassword());
    }
}
